﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Comments
/// </summary>
public class Comments
{
    private int idComment;
    private Users user;
    private string contents;
    private bool privacy;
    private Posts post;
    private DateTime createTime;

	public Comments()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    public Comments(int idComment, Users user, string contents, bool privacy, Posts post, DateTime createTime)
    {
        this.idComment = idComment;
        this.user = user;
        this.contents = contents;
        this.privacy = privacy;
        this.post = post;
        this.createTime = createTime;
    }

    public int IdComment
    {
        get { return idComment; }
        set { idComment = value; }
    }

    public Users User
    {
        get { return user; }
        set { user = value; }
    }

    public string Contents
    {
        get { return contents; }
        set { contents = value; }
    }

    public bool Privacy
    {
        get { return privacy; }
        set { privacy = value; }
    }

    public Posts Post
    {
        get { return post; }
        set { post = value; }
    }

    public DateTime CreateTime
    {
        get { return createTime; }
        set { createTime = value; }
    }
}